Fix make check
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jun 2011 18:05:06 +0000 (14:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:07:58 +0000 (16:07 -0400)
Not really the best fix; for now just ignore accessible parents
that are not GtkAccessibles - it seems that something causes
GailToplevels to show up as parents of GailWindows, randomly.

tests/a11y/accessibility-dump.c

index 3c567442c5c5063ac5e8215b7b0483ecc0cb2544..aadd7f208c16b264b06d9f996fa2a570fb9e5cce 100644 (file)
@@ -232,7 +232,7 @@ dump_accessible (AtkObject     *accessible,
   depth += DEPTH_INCREMENT;
 
   g_string_append_printf (string, "%*s\"%s\"\n", depth, "", atk_role_get_name (atk_object_get_role (accessible)));
-  if (atk_object_get_parent (accessible))
+  if (GTK_IS_ACCESSIBLE (atk_object_get_parent (accessible)))
     g_string_append_printf (string, "%*sparent: %s\n", depth, "", get_name (atk_object_get_parent (accessible)));
   if (atk_object_get_index_in_parent (accessible) != -1)
     g_string_append_printf (string, "%*sindex: %d\n", depth, "", atk_object_get_index_in_parent (accessible));